﻿#region Copyright(C) 2018 FI Ltd. All rights reserved.
// ==================================================================================================
// Copyright(C) 2018 FI Ltd. All rights reserved.
//
// SYSTEM NAME	    : FI.Net Application Framework
// COMPONENT ID	    : FI.Core
// COMPONENT DESC   : FI.Net Core Foundation
//
// CREATED DATE/BY  : 18 Aug 2018 / Tian Mi
//
// REVISION HISTORY :	
// DATE/BY			SR#/CS/PM#/OTHERS		DESCRIPTION OF CHANGE
// ==================================================================================================
#endregion


namespace FI.Core
{
    /// <summary>
    /// All of service proxy factory classes must implement this interface.
    /// </summary>
    public interface IServiceProxyFactory
    {
        /// <summary>
        /// Gets the service proxy.
        /// </summary>
        /// <typeparam name="TServiceInterface">The type of the service interface.</typeparam>
        /// <param name="endpointName">Name of the endpoint.</param>
        /// <returns>The service interface instance.</returns>
        TServiceInterface GetServiceProxy<TServiceInterface>(string endpointName);
    }
}
